{% extends "base.html" %}
{% load thumbnail %}
{% block title %}{{ news }} | Wine游戏助手{% endblock %}

{% block content %}
  <header class="news-header">
    <h3>{{ news }}</h3>
    <p> Posted by {{ news.user }} {{ news.publish_date }} </p>
    {% if news.image %}
       {% thumbnail news.image '400x400' format='PNG' upscale=False as image %}
        <a href="{{ news.image.url }}">
          <img src="{{ image.url }}" />
        </a>
       {% endthumbnail %}
    {% endif %}
  </header>
  <article>
    {{ news.content.rendered|safe }}
  </article>
{% endblock %}
